package com.atech.ebayadmin.category.dao;

import java.util.List;

import com.atech.ebayadmin.category.model.Category;

public interface ICategoryDAO {
    /**
     * getAmount 根据ID查找分类对象
     *
     * @param Integer id
     *
     * @return Amount
     * @throws java.lang.Exception
     */
    public Category getCategory(String id) throws Exception;
    /**
     * listCategoryByParentId 根据父节点ID查找所有的树节点
     *
     * @param Integer id
     *
     * @return List<Category>
     * @throws java.lang.Exception
     */
    public List<Category> listCategoryByParentId(String parentId) throws Exception;
    /**
     * saveCategory 保存分类对象
     *
     * @param Category po
     *
     * @return Integer id
     * @throws java.lang.Exception
     */
    public Integer saveCategory(Category po) throws Exception;

}
